{{include file="default/Public/header.html"}}
<div id="pageTop">
	<div class="tabs"> 
		<ul>
			<li><span class="selected">基本信息</span></li>
		</ul>		
	</div>
</div>

<form class="validate" method="post" action="{{U url='fuser/edit?dosubmit=1'}}" >
<div id="pageCo">
	<div class="manageForm">
		{{foreach from=$form_data item=card key=id}}
		<table cellpadding="0" cellspacing="0" class="tabcontent" id="tabsContent{{$id}}">
			<tbody>
				{{foreach from=$card item=v}}
				<tr>
					<th width="150">{{$v.name}}<span>{{$v.tips}}</span></th>
					<td>{{$v.form}}</td>
				</tr>
				{{/foreach}}
				               
				{{if $id==1}}
				<tr>
			      <th width="150">会员角色<span>给会员分配一个角色</span></th>
			      <td>
			      <select name="info[role_id]">
			      	{{foreach from=$roles item=v}}
					  <option value="{{$v.role_id}}" {{if $v.role_id == $data.role_id}}selected="selected"{{/if}}>{{$v.nickname}}</option>
					{{/foreach}}
			      </select>
			      </td>
			    </tr>
			    {{/if}}
			</tbody>
		</table>
		{{/foreach}}
		<table cellpadding="0" cellspacing="0" class="tabcontent" id="tabsContent{{$id}}">
			<tbody>
				<tr>
					<th width="150">积分<span></span></th>
					<td>
						<input name="info[jifen]" id="info_jifen" type="text" value="{{$data.jifen}}" class="input" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">联系电话<span></span></th>
					<td>
						<input name="info[telephone]" id="info_telephone" type="text" value="{{$data.telephone}}" class="input" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">身份证<span></span></th>
					<td>
						<input name="info[shenfenz]" id="info_shenfenz" type="text" value="{{$data.shenfenz}}" class="input  valid" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">护照<span></span></th>
					<td>
						<input name="info[huzhao]" id="info_huzhao" type="text" value="{{$data.huzhao}}" class="input  valid" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">生日<span></span></th>
					<td>
						<input name="info[birthday]" id="info_birthday" type="text" value="{{$data.birthday}}" class="input  valid" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">邮编<span></span></th>
					<td>
						<input name="info[youbian]" id="info_youbian" type="text" value="{{$data.youbian}}" class="input  valid" maxlength="255" size="20">
					</td>
				</tr>
				<tr>
					<th width="150">地址<span></span></th>
					<td>
						<input name="info[address]" id="info_address" type="text" value="{{$data.address}}" class="input  valid" maxlength="255" size="20">
					</td>
				</tr>
			</tbody>
		</table>
		<table cellpadding="0" cellspacing="0">
			<tfoot>
				<tr>
					<th width="150">
						<input type="hidden" name="forward" value="{{$forward}}">
						<input type="hidden" name="info[isadmin]" value="0">
						<input type="hidden" name="info[user_id]" value="{{$data.user_id}}" />
					</th>
					<td>
						<label class="btn"><input type="submit" name="submit" value="确定保存" class="submit" /></label>
						<label class="btn"><input type="reset" name="reset" value="重 置" class="submit" /></label>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>	
</div>
</form>
{{include file="default/Public/footer.html"}}